package com.lingkang.sales.data.mapper;

import com.lingkang.sales.data.entity.SaPermission;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author linke
 * @date 2020/11/15 18:13
 * @description
 */
public interface SaPermissionMapper {

  int deleteByPrimaryKey(String roleName);

  int insertSelective(SaPermission record);

  SaPermission selectByPrimaryKey(String roleName);

  int updateByPrimaryKeySelective(SaPermission record);

  SaPermission getPermissions(String roleName);

  List<SaPermission> permissionList(@Param("search") String search);
}
